-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
42 lines (24 loc) · 844 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import {home} from './home.js'
import {user} from './user.js'
import {event} from './event.js'
const app = Sammy('body', function(){
this.use('Handlebars', 'hbs')
this.get('#/', home.home)
this.get('/', home.home2)
this.get('#/gallery', home.gallery)
this.get('#/login', user.login)
this.post('#/login', user.postLogin)
this.get('#/register', user.register)
this.post('#/register', user.postRegister)
this.get('#/logout', user.logout)
this.get('#/events', event.events)
this.get('#/create', event.create)
this.post('#/create', event.postCreate)
this.get('#/details/:id', event.details)
this.get('#/edit/:id', event.edit)
this.post('#/edit/:id', event.postEdit)
this.get('#/delete/:id', event.delete)
this.get('#/about', event.about)
this.get
})
app.run()