Version 1.0
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use BBRouter\RouteCollection as RouteCollection;
|
||||
use RequestResponse\Response as Response;
|
||||
|
||||
RouteCollection::add("GET", '/', function() {
|
||||
global $OUTPUT;
|
||||
$OUTPUT->load_view('wellcome');
|
||||
})->middleware_ignore('auth');
|
||||
|
||||
RouteCollection::add("GET", '/wellcome', function() {
|
||||
Response::json('This is an other wellcome message')->send();
|
||||
})->middleware_ignore('auth');
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
$string['wellcome']['module_name'] = 'wellcome';
|
||||
|
||||
$string['wellcome']['wellcome'] = 'Bem-vindo!';
|
||||
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<div style="text-align: center">
|
||||
<img src="media/logo_black.png" />
|
||||
</div>
|
||||
|
||||
Wellcome to hell...
|
||||
<br />
|
||||
I shal be your guide
|
||||
Reference in New Issue
Block a user