Merge branch 'master' of https://dev.azure.com/HackKu/HackKu%202020/_git/backend
This commit is contained in:
commit
49a2a31b80
17
app/controllers/api/v1/Misc.controller.js
Normal file
17
app/controllers/api/v1/Misc.controller.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
const Controller = require('libflitter/controller/Controller')
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Misc Controller
|
||||||
|
* -------------------------------------------------------------
|
||||||
|
* Put some description here!
|
||||||
|
*/
|
||||||
|
class Misc extends Controller {
|
||||||
|
|
||||||
|
hello_world(req, res) {
|
||||||
|
return res.api({
|
||||||
|
hello: 'world',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = exports = Misc
|
47
app/routing/routers/api/v1.routes.js
Normal file
47
app/routing/routers/api/v1.routes.js
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* API v1 Routes
|
||||||
|
* -------------------------------------------------------------
|
||||||
|
* Description here
|
||||||
|
*/
|
||||||
|
const index = {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define the prefix applied to each of these routes.
|
||||||
|
* For example, if prefix is '/auth':
|
||||||
|
* '/' becomes '/auth'
|
||||||
|
* '/login' becomes '/auth/login'
|
||||||
|
*/
|
||||||
|
prefix: '/api/v1',
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define middleware that should be applied to all
|
||||||
|
* routes defined in this file. Middleware should be
|
||||||
|
* included using its non-prefixed canonical name.
|
||||||
|
*
|
||||||
|
* You can pass arguments along to a middleware by
|
||||||
|
* specifying it as an array where the first element
|
||||||
|
* is the canonical name of the middleware and the
|
||||||
|
* second element is the argument passed to the
|
||||||
|
* handler's exec() method.
|
||||||
|
*/
|
||||||
|
middleware: [
|
||||||
|
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Define GET routes.
|
||||||
|
* These routes are registered as GET methods.
|
||||||
|
* Handlers for these routes should be specified as
|
||||||
|
* an array of canonical references to controller methods
|
||||||
|
* or middleware that are applied in order.
|
||||||
|
*/
|
||||||
|
get: {
|
||||||
|
'/hello_world': [ 'controller::api:v1:Misc.hello_world' ],
|
||||||
|
},
|
||||||
|
|
||||||
|
post: {
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = exports = index
|
@ -16,6 +16,7 @@ html
|
|||||||
background-color:#343a40;
|
background-color:#343a40;
|
||||||
}
|
}
|
||||||
#intro {
|
#intro {
|
||||||
|
margin-top: 10px;
|
||||||
color: #cccccc;
|
color: #cccccc;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@ -27,17 +28,33 @@ html
|
|||||||
}
|
}
|
||||||
.login-container {
|
.login-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: center;
|
color: #cccccc;
|
||||||
border: 4px solid #ccc;
|
border: solid 7px #cccccc;
|
||||||
padding: 0.01em 0.02em;
|
align-self: center;
|
||||||
border-radius: .35rem;
|
background: transparent;
|
||||||
|
-webkit-transition: all .5s ease;
|
||||||
|
transition: all .5s ease;
|
||||||
|
outline: none;
|
||||||
|
box-shadow: 20px 38px 34px -26px rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 82px 65px 185px 1085px/72px 225px 58px 15px;
|
||||||
|
}
|
||||||
|
.btn-login {
|
||||||
|
color: #cccccc;
|
||||||
|
border: solid 7px #cccccc;
|
||||||
|
align-self: center;
|
||||||
|
background: transparent;
|
||||||
|
-webkit-transition: all .5s ease;
|
||||||
|
transition: all .5s ease;
|
||||||
|
outline: none;
|
||||||
|
box-shadow: 20px 38px 34px -26px rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
|
||||||
}
|
}
|
||||||
.login-container div a {
|
.login-container div a {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.icons {
|
.icons {
|
||||||
font-size: 1.6em;
|
font-size: 1.8em;
|
||||||
padding: 1.1em 1.1em 1.1em 1.1em;
|
padding: 1em 1em 1em 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
body
|
body
|
||||||
@ -49,22 +66,22 @@ html
|
|||||||
.container#login
|
.container#login
|
||||||
.login-container
|
.login-container
|
||||||
div
|
div
|
||||||
a.btn.btn-light.btn-lg(href="/auth/flitter/login")
|
a.btn.btn-login.btn-light(href="/auth/flitter/login")
|
||||||
i.icons.fas.fa-sign-in-alt
|
i.icons.fas.fa-sign-in-alt
|
||||||
span Local Login
|
span Local Login
|
||||||
div
|
div
|
||||||
a.btn.btn-light.btn-lg(href="/auth/github_oauth/login")
|
a.btn.btn-login.btn-light(href="/auth/github_oauth/login")
|
||||||
i.icons.fab.fa-github
|
i.icons.fab.fa-github
|
||||||
span Login with GitHub
|
span Login with GitHub
|
||||||
div
|
div
|
||||||
a.btn.btn-light.btn-lg.disabled(href="google.com")
|
a.btn.btn-login.btn-light.disabled(href="google.com")
|
||||||
i.icons.fab.fa-google
|
i.icons.fab.fa-google
|
||||||
span Login with Google
|
span Login with Google
|
||||||
div
|
div
|
||||||
a.btn.btn-light.btn-lg.disabled(href="microsoft.com")
|
a.btn.btn-login.btn-light.disabled(href="microsoft.com")
|
||||||
i.icons.fab.fa-microsoft
|
i.icons.fab.fa-microsoft
|
||||||
span Login with Microsoft
|
span Login with Microsoft
|
||||||
div
|
div
|
||||||
a.btn.btn-light.btn-lg.disabled(href="microsoft.com")
|
a.btn.btn-login.btn-light.disabled(href="apple.com")
|
||||||
i.icons.fab.fa-apple
|
i.icons.fab.fa-apple
|
||||||
span Login with Apple
|
span Login with Apple
|
||||||
|
Loading…
Reference in New Issue
Block a user