* In Progress, Not Done Yet + Added Handlers to cover public and admin handlers + Added WebServer + InitHandlers used the new class
		
			
				
	
	
		
			14 lines
		
	
	
		
			318 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			318 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package Handlers
 | |
| 
 | |
| import (
 | |
| 	"net/http"
 | |
| )
 | |
| 
 | |
| func AddPublicHandler(pattern string, handler func(http.ResponseWriter, *http.Request)) {
 | |
| 	muxPublic.HandleFunc(pattern, handler)
 | |
| }
 | |
| 
 | |
| func AddAdminHandler(pattern string, handler func(http.ResponseWriter, *http.Request)) {
 | |
| 	muxAdmin.HandleFunc(pattern, handler)
 | |
| }
 |