Ver Fonte

Added API template

It was a button that was not working, made it work so people don't think
its broken, but something we haven't added.
Johand há 9 anos atrás
pai
commit
762f5e6554
3 ficheiros alterados com 17 adições e 1 exclusões
  1. 4 0
      app/app.js
  2. 12 0
      app/templates/api.html
  3. 1 1
      app/templates/footer.html

+ 4 - 0
app/app.js

@@ -1711,6 +1711,10 @@ Router.route("/terms", {
     template: "terms"
     template: "terms"
 });
 });
 
 
+Router.route("/api", {
+    template: "api"
+});
+
 Router.route("/privacy", {
 Router.route("/privacy", {
     template: "privacy"
     template: "privacy"
 });
 });

+ 12 - 0
app/templates/api.html

@@ -0,0 +1,12 @@
+<template name="api">
+    <div class="landing">
+	    {{> header}}
+        <div class="row">
+            <div class="about col-md-8 col-md-offset-2">
+                <h2>API</h2>
+                <p>API documentation is under construction...</p>
+                <p>It's not our highest priority at the moment. So please be patient it will come soon.</p>
+            </div>
+        </div>
+    </div>
+</template>

+ 1 - 1
app/templates/footer.html

@@ -1,7 +1,7 @@
 <template name="footer">
 <template name="footer">
     <footer>
     <footer>
         <p>Copyright © 2015 All Right Reserved</p>
         <p>Copyright © 2015 All Right Reserved</p>
-        <a class="footerButtons" id="apiButton">API |</a>
+        <a href="/api" class="footerButtons" id="apiButton">API |</a>
         <a href="/terms" class="footerButtons" id="termsButton">Terms |</a>
         <a href="/terms" class="footerButtons" id="termsButton">Terms |</a>
         <a href="/privacy" class="footerButtons" id="privacyButton">Privacy |</a>
         <a href="/privacy" class="footerButtons" id="privacyButton">Privacy |</a>
         <a href="/about" class="footerButtons" id="aboutButton">About</a>
         <a href="/about" class="footerButtons" id="aboutButton">About</a>